package com.gcxy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("event")
@ApiModel(value="Event对象", description="")
public class Event implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "动态id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发动态的时间")
    @TableField("time")
    private LocalDateTime time;

    @ApiModelProperty(value = "储存图片的地址")
    @TableField("picture")
    private String picture;

    @ApiModelProperty(value = "动态内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "关联用户id")
    @TableField("user_id")
    private Integer userId;


}
